home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / news / inn-faq / part1 < prev    next >
Internet Message Format  |  1994-04-04  |  27KB

  1. Path: bloom-beacon.mit.edu!hookup!swrinde!cs.utexas.edu!uunet!news.mentorg.com!sdl!not-for-mail
  2. From: tal@Warren.MENTORG.COM (Tom Limoncelli)
  3. Newsgroups: news.software.nntp,news.software.b,news.answers
  4. Subject: INN FAQ Part 1/4: General Information
  5. Supersedes: <inn-faq-1-764139607@Warren.MENTORG.COM>
  6. Followup-To: news.software.nntp
  7. Date: 5 Apr 1994 04:00:09 -0000
  8. Organization: Mentor Graphics - IC Group, Warren, NJ, USA
  9. Lines: 673
  10. Sender: tal@Warren.MENTORG.COM
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 04/20/94
  14. Message-ID: <inn-faq-1-765518407@Warren.MENTORG.COM>
  15. Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli)
  16. NNTP-Posting-Host: sdl.warren.mentorg.com
  17. X-Summary-1: Part 1: Common questions about INN itself, useful to people that do not currently run INN.  Also, some advice specific to certain operating systems.
  18. X-Summary-2: Part 2: Read this AFTER you've read and followed the directions in Install.ms.  Help with getting innd to start.  A tutorial on debugging posting/access problems.  A list of error messages and what they mean.
  19. X-Summary-3: Part 3: Day-to-day operational questions.  General questions asked once INN is running for a while.  Some big changes you can make.  Bug warnings for 1.4, 1.3, 1.2.
  20. X-Summary-4: Part 4: Norman's quick guide to getting started (assumes SunOS and other things), and misc. other things.
  21. Xref: bloom-beacon.mit.edu news.software.nntp:5478 news.software.b:4159 news.answers:17678
  22.  
  23. Posted-By: auto-faq 2.4
  24. Archive-name: inn-faq/part1
  25.  
  26. Last Changed: $Id: FAQ-inn.1,v 1.65 1994/03/24 16:59:42 tal Exp $
  27.  
  28.                   Part 1 of 4
  29.  
  30. INN FAQ Part 1/4: General Information:
  31.                      Questions from people that don't (yet) run INN
  32.                      Specific notes for specific operating systems
  33. INN FAQ Part 2/4: Debugging Guide & Tutorial:
  34. INN FAQ Part 3/4: Operational and Misc. Questions
  35. INN FAQ Part 4/4: Appendix A: Norman's install guide
  36.  
  37.  
  38. ------------------------------
  39.  
  40. Subject:  Table Of Contents for Part 1/4
  41.  
  42. =====================================================================
  43.         TABLE OF CONTENTS FOR PART 1/4:  General Information
  44. =====================================================================
  45.  
  46. QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN:
  47.     Where can I get the INN software?
  48.     Where can I get the latest copy of this FAQ?
  49.     What is INN?
  50.     What machines does it run on?
  51.     INN must be really complicated since this FAQ is so long!
  52.     Can I run C News with INN?
  53.     Can I run NNTP with INN?
  54.     Can I run the reference implementation (NNTP1.5) with INN?
  55.     Can I run INN on my UUCP-only machine?
  56.     Suppose I have a 286 machine?
  57.     Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
  58.     Is an ident or authorization protocol supported?
  59.     Does INN do UUCP batching like C News?
  60.     Help!  How do I configure this beast?
  61.     How do I thank the FAQ maintainer?
  62.  
  63. SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
  64.     AIX tips
  65.     SunOS 4.1.2 tips
  66.     Ultrix mmap tip
  67.     Ultrix syslog tip
  68.     HP-UX tips
  69.     Pyramid and system's where only root can have "cron" jobs.
  70.     System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  71.     Solaris 2.x special needs
  72.     Mac running A/UX 3.0
  73.     NOV problems on a Pyramid
  74.     Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  75.     Alpha OSF tips
  76.  
  77.  
  78. The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
  79. maintained by Tom Limoncelli <tal@warren.mentorg.com>.
  80.  
  81. These documents would not exist if it weren't for the people that have
  82. submitted questions and (most importantly) answers.  THANK YOU ALL!
  83.  
  84.  
  85. =====================================================================
  86.            QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN
  87. =====================================================================
  88.  
  89.  
  90. ------------------------------
  91.  
  92. Subject:  Where can I get the INN software?
  93.  
  94. The official archive site is ftp.uu.net in the directory
  95. networking/news/nntp/inn.  Archie current lists over 30 archive sites;
  96. three other international sites are grasp.insa-lyon.fr in
  97. pub/unix/news/inn, munnari.oz.au in pub/news/inn, and src.doc.ic.ac.uk
  98. in computing/usenet/software/transport
  99.  
  100. The latest version of INN is 1.4sec.  This is rev. 1.4 with a slight
  101. modification of certain shell scripts to fix a security hole.  Do
  102. not run 1.4 without the patch (see part 3/4 of this FAQ).
  103.  
  104.  
  105. ------------------------------
  106.  
  107. Subject:  Where can I get the latest copy of this FAQ?
  108.  
  109. 1.  This four-part FAQ is available via FTP at any FTP site that carries
  110. INN itself.
  111.  
  112. 2.  This FAQ is also posted to news.software.nntp, news.software.b and
  113.     news.answers on the 5th and 20th of every month.
  114.  
  115. 3.  You can also get this FAQ by sending email to
  116. majordomo@warren.mentorg.com with "get file faq-inn-1" on the first
  117. line of the message.  (the Subject: of the message will be ignored.)
  118. (Substitute faq-inn-2, faq-inn-3 or faq-inn-4 to get those parts).
  119.  
  120. For example:
  121.  
  122. % echo get file faq-inn-1 | mail majordomo@warren.mentorg.com
  123. % echo get file faq-inn-2 | mail majordomo@warren.mentorg.com
  124. % echo get file faq-inn-3 | mail majordomo@warren.mentorg.com
  125. % echo get file faq-inn-4 | mail majordomo@warren.mentorg.com
  126.  
  127. or
  128.  
  129. % mail majordomo@warren.mentorg.com
  130. Subject: ignored
  131. get file faq-inn-1
  132. get file faq-inn-2
  133. get file faq-inn-3
  134. get file faq-inn-4
  135. ^D
  136.  
  137. or if you csh and are a total nerd, you can:
  138.     echo 'get file new-inn.'{1,2,3,4}@ \
  139.         | tr @ '\012' | mail majordomo@warren.mentorg.com
  140.  
  141. ...or get a real hobby.
  142.  
  143.  
  144. ------------------------------
  145.  
  146. Subject:  What is INN?
  147.  
  148. For a complete answer, why not read the Usenix paper that introduced
  149. INN to the world?  It's available as
  150. ftp.uu.net:networking/news/nntp/inn/inn.usenix.ps.Z
  151.  
  152. InterNetNews is a complete Usenet system.  The cornerstone of the package
  153. is innd, an NNTP server that multiplexes all I/O.  Think of it as an nntpd
  154. merged with the B News inews, or as a C News relaynews that reads multiple
  155. NNTP streams.  Newsreading is handled by a separate server, nnrpd, that is
  156. spawned for each client.  Both innd and nnrpd have some slight variances
  157. from the NNTP protocol (although in normal use you will never notice); see
  158. the manpages.  INN separates hosts that feed you news from those that have
  159. users reading news.  If you need to support a mixed environment you will have
  160. to do some extra work; the installation manual gives some hints.
  161.  
  162.  
  163. ------------------------------
  164.  
  165. Subject:  What machines does it run on?
  166.  
  167. If you have socket() and select() then INN will probably run on your
  168. machine.  In addition to the common platforms found around the Internet
  169. (SunOS and Ultrix, for example), INN runs on IBM`s AIX, Apple's A/UX,
  170. NeXT, Solaris 2.x, most SVR4 platforms, BSDI, most free BSD systems on
  171. Intel (NetBSD, FreeBSD, ...) and a host of others.  It might require a
  172. little bit of tweaking of some free BSD platforms that have really bad
  173. shells.
  174.  
  175.  
  176. ------------------------------
  177.  
  178. Subject:  INN must be really complicated since this FAQ is so long!
  179.  
  180. No, it's just that the FAQ is very complete.  Part 2 is so long because
  181. it includes a tutorial that tries to turn a beginner into an TCP/IP
  182. protocol expert.  Part 3 is long because the FAQ maintainer is
  183. constantly trying to add every question ever asked on
  184. news.software.nntp.  Maybe someone should volunteer to maintain an
  185. index.
  186.  
  187. A lot of the material could be integrated into the Install.ms doc.
  188.  
  189.  
  190. ------------------------------
  191.  
  192. Subject:  Can I run C News with INN?
  193.  
  194. No.  INN handles all article reception, filing, forwarding, and
  195. expiration.  You will get a corrupted database if you try to
  196. run INN with any other news system.  For testing, you can probably shut
  197. down your old system, bring up INN, and then reverse the process.  (INN
  198. uses the C News history file and DBZ database, so if you don't run C News
  199. you will have to do some fiddling around with those files.)
  200.  
  201.  
  202. ------------------------------
  203.  
  204. Subject:  Can I run NNTP with INN?
  205.  
  206. There's a confusion here.  NNTP is a protocol, defined in RFC 977.  There
  207. is also an implementation of the protocol, NNTP1.5, that many people call
  208. NNTP.  When there was only one implementation of the protocol, that was
  209. okay, but now that there are other implementations (for example, INN) it
  210. is getting confusing.  It would be as if "sendmail" were named "smtp."
  211. Please try to be clear -- do you mean the NNTP protocol, or the NNTP
  212. reference implementation currently maintained by Stan Barber?
  213.  
  214.  
  215. ------------------------------
  216.  
  217. Subject:  Can I run the reference implementation (NNTP1.5) with INN?
  218.  
  219. The quick answer is no.  INN listens on the NNTP port and handles all
  220. incoming traffic.  It receives articles, files them, and arranges for
  221. them to be forwarded to your peers.  If a site connects that is not
  222. listed as a peer (e.g., a local workstation that does newsreading) then
  223. the INN server hands the connection off to another program that handles
  224. just the NNTP commands that newsreaders use.  By default, this is nnrpd
  225. (notice the "r"), which implements the NNTP protocol for newsreaders
  226. (for example, it includes the POST command but not the IHAVE command).
  227. You can run the reference implementation server instead of nnrpd if you
  228. want.  Doing this can be useful if you have clients that want to do
  229. both reading and article transfer.
  230.  
  231.  
  232. ------------------------------
  233.  
  234. Subject:  Can I run INN on my UUCP-only machine?
  235.  
  236. Sure.  While not designed for this, several people are running INN on
  237. machines that do not have IP-connectivity (such as UUCP-only hosts) and
  238. are quite happy with it.  You might want to give it a try, especially if
  239. you think you will be joining the Internet some day.
  240.  
  241.  
  242. ------------------------------
  243.  
  244. Subject:  Suppose I have a 286 machine?
  245.  
  246. Won't work.  INN is designed to be a memory hog; a server that has been up
  247. for a few days while will have a working set size of a few to several
  248. megabytes, although not all of it will be resident.  For example, the
  249. server keeps the active file and list of who gets what in memory, as well
  250. as all articles that it is receiving.  Unless you can do things like
  251. "malloc(64 * 1024)" without pain, INN won't work on your machine.
  252.  
  253.  
  254. ------------------------------
  255.  
  256. Subject:  Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
  257.  
  258. Newsreaders all need some way to quickly grab data from
  259. a range of articles.  trn, tin, nn, and others each developed
  260. their own database format, and their own extensions to the NNTP
  261. protocol for clients to read the database.  Then, Geoff Collyer
  262. invented NOV, the database to end all other databases.
  263.  
  264. Rather than support a different database format for each newsreader,
  265. INN supports Geoff Collyer's news overview database, NOV.  INN includes
  266. everything you need to create/maintain/expire NOV's .overview files.
  267. You only need Geoff's distribution (available via FTP on world.std.com
  268. src/news/nov.dist.tar.Z) if you want to see how he implements things,
  269. or to get his client library (useful when building some newsreaders).
  270.  
  271. It is very easy to configure INN to use NOV.  Read Part 3/4 of
  272. this faq: Subject: Cookbook example setting up NOV ("overchan")
  273. NB: The NOV code in INN 1.3 is buggy.  Use 1.4 or higher.
  274.  
  275. The xover command is used for querying the NOV database.  The xover
  276. command is very smart in that if the article has been canceled, the
  277. data isn't given out.  If the article is so new that it's data isn't in
  278. the NOV database, nnrpd opens the article and digs out the data.  xhrd
  279. and xpat make every effort to use NOV data before they dig the data out
  280. of the actual articles, thus making them considerably faster than other
  281. implementations.  The "xoverview" command does not exist.  If your
  282. server supports this command you need to upgrade.
  283.  
  284. What about TRN's xthread command?
  285.  
  286. The xthread command has code but it is not supported; look at
  287. $inn/nnrpd/nnrpd.h.  This code will probably vanish after 1.4.
  288.  
  289. What about TIN's many commands?
  290.  
  291. Tin commands are not supported.  However, other people have
  292. added TIN support.  See the next section.
  293.  
  294.  
  295.  
  296. ------------------------------
  297.  
  298. Subject:  Is an ident or authorization protocol supported?
  299.  
  300. An unsupported patch for nnrpd to add ident support can be found via
  301. FTP at ftp.csie.nctu.edu.tw:/pub/news/nnrpd-identd-patch.shar.gz.  It
  302. includes patches to add tin's xuser and xmotd commands as well as a
  303. list subscription system. (skhuang@csie.nctu.edu.tw)
  304.  
  305. Remember: ident information is only as valid as the server you connect
  306. to.  Any fool with root access (or anyone with a PC or Mac) can create
  307. a bogus ident server that will give out whatever information they want
  308. you to see.  It's not an authorization or identification protocol, it's
  309. just informational.
  310.  
  311. The authd protocol is added to nnrpd by <nhiro@isci.kyutech.ac.jp>.
  312. This unsupported patch can be found in
  313. ftp.geophys.hokudai.ac.jp:/pub/network/news/inn/patches/authd-patch-1.3.tar.gz
  314. The documentation is in Japanese.  Good luck.
  315.  
  316. In a future release, you will be able to log all POST commands with
  317. ident information if you so choose.  (Maybe INN 1.5)
  318.  
  319.  
  320. ------------------------------
  321.  
  322. Subject:  Does INN do UUCP batching like C News?
  323.  
  324. Not as part of the standard distribution.  The batching system right
  325. now is better than B News, but Rich has said he will be working on
  326. improving that part of INN in a future release.  Christophe Wolfhugel
  327. <Christophe.Wolfhugel@grasp.insa-lyon.fr> has written a package that is
  328. very much like the C News batching system, however.  You can find it on
  329. grasp.insa-lyon.fr in the pub/unix/news/inn/contrib directory.
  330.  
  331. Version 3 of Christophe's package includes a shell version and a Perl
  332. version.  Version 4, not yet planned will only be in Perl.  The
  333. configuration file has evolved from older releases in order to support
  334. new features like "minimum batching".
  335.  
  336.  
  337. ------------------------------
  338.  
  339. Subject:  Help!  How do I configure this beast?
  340.  
  341. READ AND FOLLOW THE "Install.ms" FILE.  This FAQ is meant to add to
  342. what Install.ms says not replace it.
  343.  
  344. Many people that thought the Install.ms doc was incomplete later
  345. re-read the "First Time Installation" portion and were amazed how much
  346. they missed (or just plain skipped) the first time.
  347.  
  348. You should also purchase the O'Reilly And Associates book on Managing
  349. Usenet to give yourself a good grounding on how to run a site.
  350.  
  351.  
  352. ------------------------------
  353.  
  354. Subject:  How do I thank the FAQ maintainer?
  355.  
  356. If you find this document useful, please consider making a donation to
  357. the maintainer's favorite charity:
  358.  
  359.     The Personal Liberty Fund
  360.     PO Box 11335
  361.     New Brunswick, NJ 08906-1335
  362.     USA
  363.  
  364. The PLF is a legal and educational organization which helps people in
  365. New Jersey, USA.  They have many on-going projects which range from
  366. combating youth suicide to legal advocacy.  Their Anti-Violence Project
  367. runs a phone hotline for reporting gay-bashing which helps hundreds of
  368. people a year.  The PLF is an all-volunteer organization and couldn't
  369. survive without donations.  The PLF is recognized by the IRS as a
  370. 501(c)3 tax-exempt charity.  Donations are tax deductible to the
  371. fullest extent of the law (U.S. citizens only).  Please write "INN" in
  372. the memo field of the check.
  373.  
  374.  
  375. ======================================================================
  376.             SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS
  377. ======================================================================
  378.  
  379.  
  380. ------------------------------
  381.  
  382. Subject:  AIX tips
  383.  
  384. Q: When I run news.daily, there's always a few lines of error
  385. messages at the end of the output:
  386.  
  387.     compress: bad file number
  388.  
  389. A:  AIX /usr/bin/compress has a bug when compressing files with zero
  390. length. Then it spits out this error.  Solution: Ignore it or use a
  391. different compress programm and change config.data accordingly.
  392. (from Kurt Jaeger <pi@rus.uni-stuttgart.de>)
  393.  
  394. Q:  innwatch doesn't work well from /etc/inittab, does it?
  395.  
  396. Q:  Nope.  Instead, you can create a "subsystem" with this command:
  397.  
  398. mkssys -s innwatch -p /usr/local/news/bin/innwatch -u news -G news -S -n 15 -f 9
  399.  
  400. Note that your path to innwatch may differ, depending on where you
  401. decided to install the inn components.  You also need to enter the
  402. command as one long line.
  403.  
  404. This will create a subsystem named "innwatch" belonging to an SRC group
  405. named "news".  The "-S" means that it uses signals for SRC to tell it
  406. when to stop and the "-n" is the SIGTERM signal, for normal shutdown,
  407. and the "-f" is the SIGKILL signal, which is sent if the process does
  408. not stop within 20 seconds.  Then, modify rc.news to issue the command
  409.  
  410.     startsrc -s innwatch
  411.  
  412. to get innwatch going.  That's it!
  413.  
  414. Shane Castle <swcxt@boco.co.gov, swcxt@csn.org>
  415.  
  416.  
  417. ------------------------------
  418.  
  419. Subject:  SunOS 4.1.2 tips
  420.  
  421. SunOS 4.1.2 (but not 4.1.1 or 4.1.3) broke the write system call but a
  422. patch is available.  Any write could fail "half way", it is just more
  423. likely to happen when writing large files and in-core DBZ writes the
  424. history file out in one chunk.  See the "Known Problems" section of the
  425. installation manual.
  426.  
  427.  
  428. ------------------------------
  429.  
  430. Subject:  Ultrix mmap tip
  431.  
  432. Ultrix has a "mmap()" function, but it doesn't do the same thing as the
  433. SunOS/BSD mmap() function.  Therefore, do not configure INN to use
  434. mmap() on a Ultrix system.  INN wants to find a mmap() function
  435. that is like the one on SunOS/BSD systems.
  436.  
  437.  
  438. ------------------------------
  439.  
  440. Subject:  Ultrix syslog tip
  441.  
  442. The syslog on Ultrix sucks rotten eggs and Digital refuses to fix it.
  443. (source: everyone that uses Ultrix and has ever used other systems)
  444.  
  445. Luckily, you can replace it with the routine that comes with INN.
  446. However, some people have had better luck installing the syslog that
  447. can be found on gatekeeper.dec.com:/pub/DEC/jtkohl-syslog-complete.tar.Z
  448. It still works with old clients but does new-style syslogging, too.
  449. Works great for me so far.  (this information from:  nelson@reed.edu
  450. (Nelson Minar)).  The syslog that is shipped with INN works pretty well
  451. but there have been some claims that some old clients don't like it.
  452.  
  453.  
  454. ------------------------------
  455.  
  456. Subject:  HP-UX tips
  457.  
  458. Q.  My logs keep telling me there is no space for articles
  459. A.  Edit innwatch.ctl to use "bdf" instead of "df".
  460.  
  461. Q. I am running inn on an HP machine. INN won't start up automatically.
  462. I can start it manually.  There is no problem with news or INN once
  463. it is started.
  464.  
  465. A.  Try adding a "sleep 10" to the bottom of /etc/rc.news, or in
  466. /etc/rc, right after /etc/rc.news is invoked.  On some machines,
  467. including HP, the shell started by "#!/bin/sh" when /etc/rc is executed
  468. will exit before innd has disassociated itself from that shell.  This
  469. causes innd to exit, sometimes without printing an error message.
  470. (source: pjoslin@mbvlab.wpafb.af.mil (Paul Joslin ))
  471.  
  472. This problem goes away if you set HAVE_SETSID to "DO".  Something to do
  473. with Posix Session Leader concepts.  Ick.  (source: Steve Howie 
  474. <scotty@piranha.cs.uoguelph.ca>)
  475.  
  476. HP-UX 8.x and 9.x users might find a problem with getting innwatch to
  477. start up.  People have found that having "at" start it seems to work
  478. more reliably than other methods:
  479.  
  480. ${DOINNWATCH} && {
  481.     echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
  482. }
  483.  
  484. The '&' in the command line prevents innwatch from taking up an at-job 
  485. slot.  SysV-style crons have a per-category and overall limit on the 
  486. number of jobs executing simultaneously.
  487.  
  488.  
  489. ------------------------------
  490.  
  491. Subject:  Pyramid and system's where only root can have "cron" jobs.
  492.  
  493. Your cron jobs may not work if you use:
  494.  
  495.     su news -c /usr/lib/news/bin/news.daily delayrm expireover
  496.  
  497. Instead, you must put the entire command in quotes.  Like this:
  498.  
  499.     su news -c "/usr/lib/news/bin/news.daily delayrm expireover"
  500.  
  501. Look for "Pyramid" in part ??? of this FAQ for details.
  502.  
  503. ------------------------------
  504.  
  505. Subject:  System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  506.  
  507. If you are running any non-BSD (i.e. System V based) Unix you MUST have
  508. the following option set:
  509.  
  510. ##  How should close-on-exec be done?  Pick IOCTL or FCNTL.
  511. #### =()<CLX_STYLE              @<CLX_STYLE>@>()=
  512. CLX_STYLE               FCNTL
  513.  
  514. This includes SVR4, Solaris 2.x, A/UX and SCO ODT 3.0.  This is clearly
  515. stated in the Install.ms file and repeated here since so many people
  516. post to news.software.nntp after ignoring the warnings.
  517.  
  518. If it isn't FCNTL, you'll get tons of overchan processes hanging
  519. around.  (source: Philip Gladstone <philip@charon.cto.citicorp.com>)
  520.  
  521. In SCO ODT 3.0 and MOST systems, innd will link and run if you use
  522. IOCTL but eventually will stop answering incoming calls.
  523.  
  524. Don't be fooled.  Just because it compiles doesn't mean it's going to
  525. work.
  526.  
  527. If you start innd on an AT&T SysV Rel 4.0 machine and get syslog
  528. messages like:
  529.     localhost:15 cant setsockopt(SNDBUF) Protocol error
  530.     localhost:15 cant setsockopt(RCVBUF) Protocol error
  531. then you should FIRST try to change HAVE_UNIX_DOMAIN to "DONT" in
  532. config.data.  If that doesn't fix the problem, you should comment out
  533. the "setsockopt()" calls and things will work.
  534.  
  535. Many SVR4 for i486 binaries (sendmail, mh, vmail, innd, rnews are now
  536. on ftp.germany.eu.net in pub/comp/i486/svr4/*.SVR4.tgz But remember
  537. that some of the above need site specific changes, so their usefulness
  538. may be limited.
  539.  
  540. If your SVR4 system still doesn't run correctly, check the
  541. Solaris 2.x suggestions.
  542.  
  543.  
  544. ------------------------------
  545.  
  546. Subject:  Solaris 2.x special needs
  547.  
  548. Under Solaris 2.x (where x = 0, 1, 2 or 3) you need to change
  549. the file "getfqdn.c".  Find the lines that read:
  550.  
  551.     if (strchr(hp->h_name, '.') == NULL) {
  552.         /* Try to force DNS lookup if NIS/whatever gets in the way. */
  553.         (void)strncpy(temp, buff, sizeof buff);
  554.         (void)strcat(temp, ".");
  555.         hp = gethostbyname(temp);
  556.     }
  557.  
  558. and delete them.
  559.  
  560. Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
  561. at the beginning of each file using gethostbyname():
  562.  
  563. #define gethostbyname __switch_gethostbyname
  564.  
  565. Under Solaris 2.3 gethostbyname() might work without changes depending
  566. on your configuration.  We haven't figured out when they work and when
  567. they don't.  If you run into problems, try to change "gethostbyname()"
  568. to "solaris_gethostbyname()" and then use the gethostbyname() listed in
  569. the Solaris Porting FAQ.  This isn't a perfect solution, because you
  570. now need a different binary for Solaris 2.[012] systems.
  571.  
  572. It would be great if someone were to submit a solaris_gethostbyname()
  573. function who's binary works under all Solaris revs and gives all the
  574. semantics of BSD gethostbyname().  In particular, one that doesn't have
  575. the problems discussed in sun bugid #1126573 or #1135988.  It would be
  576. amazing if this was submitted by one of the many Sun employees that
  577. flame the INN FAQ maintainer in comp.sys.sun.admin everytime he bitches
  578. about how much he hates Solaris 2.x. :-)
  579.  
  580. Under all Solaris 2.* versions there is a problem with innwatch.ctl.
  581. It expects to use "df -i" to find out how many inodes are free on your
  582. disk.  /usr/{sbin,5bin,bin}/df doesn't support the "-i" option.  You
  583. have to use "/usr/ucb/df -i" instead, since this version of df includes
  584. the "-i" option.
  585.  
  586.  
  587. ------------------------------
  588.  
  589. Subject:  Mac running A/UX 3.0
  590.  
  591. Tip #1: Use the INN malloc.
  592.  
  593. Tip #2:  If you are running INN 1.4 on a Mac running A/UX 3.0.1, Every
  594. so often, (generally when someone fires up a reader), INN goes beserk.
  595. Syslog says:
  596.  
  597.     innd: ME cant select Bad file number
  598.  
  599. This message repeats about 20 times per second.  It freezes up my
  600. computer and I need to reboot.
  601.  
  602. That's a kernel bug. You do have to reboot.
  603.  
  604. If you compiled inn with gcc, don't. My experience was that somehow, if
  605. INN was compiled with GCC the kernel bug is triggered, but that doesn't
  606. happen with cc.
  607.  
  608.  
  609. ------------------------------
  610.  
  611. Subject:  NOV problems on a Pyramid
  612.  
  613. Q:  I just turned on the overview stuff and I don't think news.daily is
  614. properly expiring the .overview files.  I'm using a Pyramid.
  615.  
  616. A:  Do you need quotes in your crontab entry?  Look at your news.daily
  617. report -- expire using "expireover delayrm" should take a few minutes.
  618. If it takes longer than, say, 10-20 minutes, then the keywords aren't
  619. being seen by news.daily so perhaps the commandline quoting is wrong.
  620.  
  621. i.e. you had:
  622.  
  623.     su news -c /usr/lib/news/bin/news.daily delayrm expireover
  624.  
  625. You should have:
  626.  
  627.     su news -c "/usr/lib/news/bin/news.daily delayrm expireover"
  628.  
  629.  
  630. ------------------------------
  631.  
  632. Subject:  Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  633.  
  634. Disclaimer:  First of all, if you have to set HAVE_UNIX_DOMAIN to DONT,
  635. YOU HAVE TO SET IT to DONT.  It's not a choice you can make, it's a
  636. description of the operating system that you purchased.  If you wrongly
  637. set this variable to DO your system isn't going to work *at* *all*.
  638.  
  639. When you use the POST via NNTP, you are talking to nnrpd.  nnrpd cleans
  640. up your headers, adds the missing headers that it is allowed to add,
  641. checks whatever it checks, and then submits the finalized version to
  642. innd.  How does it talk to innd?
  643. If you have HAVE_UNIX_DOMAIN set to DO, nnrpd opens a Unix domain
  644. socket and sends the text.  At this point it is talking to innd
  645. somewhat like ctlinnd does.  innd can trust that the post isn't
  646. forged since it is coming from a program trustworthy enough to
  647. get to the socket (which isn't much).
  648. If you have HAVE_UNIX_DOMAIN set to DONT, it has no choice but to open
  649. a socket to port 119, issue the "IHAVE" command, and send the text that
  650. way (just like a remote newsreader).  This means that innd (not another
  651. nnrpd) has to be at the other end of the pipe.  If it opens the
  652. connection and sees a "nnrpd" you're hosed and you get "441 480
  653. Transfer permission denied".  (Better the "441 480" message than an
  654. infinate loop of nnrpd's connecting to nnrpd's!)  To get innd to not
  655. hand off the connection to a nnrpd process, you must have the host's
  656. name in the hosts.nntp file.  (don't forget to do "ctlinnd reload
  657. hosts.nntp")
  658.  
  659. If you have your host's name in the hosts.nntp file, then any
  660. newsreader running on your nntphost must be "INN-aware" (i.e. that they
  661. issue the "mode reader" command) or they must read news via the file
  662. system instead of NNTP.
  663.  
  664. If you have NNTP-based newsreaders that can't send the "mode reader"
  665. command, you can try including "server: localhost" in your inn.conf
  666. file, but then you must have a different inn.conf file for the other
  667. machines.  If you can't do that, you have no other options but to
  668. recompile your newsreaders.
  669.  
  670. Remember, if you change your inn.conf file, you must shutdown and
  671. restart innd.  There is no "ctlinnd reload inn.conf" command.
  672.  
  673.  
  674. ------------------------------
  675.  
  676. Subject:  Alpha OSF tips:
  677.  
  678. To compile INN for the DEC Alpha, follow the instructions in the INN
  679. patch archive on ftp.pop.psu.edu:/pub/src/news/inn-patches
  680.  
  681. In rc.news you need to start $INNWATCH using the following:
  682.  
  683. ${DOINNWATCH} && {
  684.     echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
  685. }
  686.  
  687. The '&' in the command line prevents innwatch from taking up an at-job
  688. slot.  SysV-style crons have a per-category and overall limit on the 
  689. number of jobs executing simultaneously.
  690.  
  691. -- 
  692. Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
  693. "Psst!  Hey, Anthony!  Y'know what I        | Disclaimer:  I do not
  694. like about existing?"  "Uh... uh... what?"  | speak for Mentor Graphics.
  695. "Possessing a physical extension."  -TSA    |
  696.